package com.hjt.common.constant;

/**
 * 商品服务常量
 * @author:97007
 * @date:2021/9/12 19:00
 */
public class ProductConstant {

    // 商品属性常量
    public enum AttrEnum {
        ATTR_TYPE_BASE(1,"base"), ATTR_TYPE_SALE(0,"sale");
        int code;
        String message;
        AttrEnum(int code, String msg) {
            this.code = code;
            this.message = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }

    // 商品状态常量
    public enum StatusEnum{
        NEW_STATUS(0,"新建"),
        UP_STATUS(1,"上架"),
        DOWN_STATUS(2,"下架"),
        ;

        int code;
        String msg;
        StatusEnum(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
